<html>
<head>
  <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
  <meta name='layout' content='single_column'/>
  <title>Login</title>
</head>

<body>
<div class="login_form">
  <g:if test='${flash.message}'>
    <div class='flash warning' id='flash-warning'>${flash.message}</div>
  </g:if>

  <form action='${request.contextPath}/j_spring_security_check' method='POST' id='loginForm'>
    <label for="j_username">Benutzername</label>
    <div class="field"><input type='text' name='j_username' id='j_username' value='${request.remoteUser}'/></div>

    <label for="j_password">Passwort</label>
    <div class="field"><input type='password' name='j_password' id='j_password'/></div>


    <div class="btn_container">
      <input type='submit' class="log_in" value='Login'/>
    </div>
    <div class="remember_me" style="width: 50%">
      <input type='checkbox' name='_spring_security_remember_me' id='remember_me' <g:if test='${hasCookie}'>checked='checked'</g:if>/>
      <label for="remember_me">Angemeldet bleiben</label>
    </div>

  </form>  <div style='clear:both;'/>
  <div class="otheroptions">
    Passwort vergessen? <a href="/forgot">Jetzt zurücksetzen</a>
  </div>

  <script type='text/javascript'>
    <!--
    (function() {
      document.forms['loginForm'].elements['j_username'].focus();
    })();
    // -->
  </script>

  <div class="bottom">
  </div>
</div>
</body>
</html>
